Preserve arg names for advice of subr and lexical functions.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Apr 2011 17:56:47 +0000 (14:56 -0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 13 Apr 2011 17:56:47 +0000 (14:56 -0300)
commit8944b03f2d63c9817f5dce0ca95c5e80ea7a5e2e
treeef61053bb74f7cab1ad3d61c540f1c58713a5056
parent98e3939a8c979a2fc261b8570a193e5a6d8abdcc
Preserve arg names for advice of subr and lexical functions.
* lisp/help-fns.el (help-function-arglist): Consolidate the subr and
new-byte-code cases.  Add argument `preserve-names' to extract names
from the docstring when needed.
* lisp/emacs-lisp/advice.el (ad-define-subr-args, ad-undefine-subr-args)
(ad-subr-args-defined-p, ad-get-subr-args, ad-subr-arglist): Remove.
(ad-arglist): Use help-function-arglist's new arg.
(ad-definition-type): Use cond.
lisp/ChangeLog
lisp/emacs-lisp/advice.el
lisp/help-fns.el